<template>
  <div class="l-chat-content">
    <div class="title">
      智能检索调阅

      <el-button type="primary" @click="setPointData([])" class="btn" link>
        关闭全部视频
      </el-button>
    </div>
    <div class="l-list">
      <chat @emitAllPoint="setPointData"></chat>
    </div>
  </div>
</template>
<script setup>
import { defineAsyncComponent, onMounted } from "vue";
const emit = defineEmits(["emitAllPoint"]);

const chat = defineAsyncComponent(() => import("./chat.vue"));

const setPointData = (pointIds) => {
  emit("emitAllPoint", pointIds);
};

onMounted(() => {});

onUnmounted(() => {});
</script>

<style lang="scss" scoped>
.l-chat-content {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  .title {
    width: 100%;
    height: 50px;
    background: #ffffff;
    padding: 0 24px;
    line-height: 50px;
    font-family: PingFangSC, PingFang SC;
    font-weight: 600;
    font-size: 16px;
    color: #333333;
    overflow: hidden;
    position: relative;
    .btn {
      position: absolute;
      right: 24px;
      top: 15px;
    }
  }
  .l-list {
    width: 100%;
    height: calc(100% - 50px);
    background: rgba(255, 255, 255, 0.5);
  }
}
</style>
